package com.firemoss.magicbus.frameworks.swiz
{
	import mx.events.DynamicEvent;
	
	public dynamic class SwizEvent extends DynamicEvent
	{
		
		public function SwizEvent( type : String, data : Object = null, bubbles : Boolean = true, cancelable : Boolean = false )
		{
			super( type, bubbles, cancelable )
			
			if ( data )
			{
				for ( var prop : String in data )
				{
					this[ prop ] = data[ prop ]
				}
			}
		}
		
	}
}